<?php echo $this->doctype('XHTML1_STRICT');?>
<html lang="en">
<head>
    <?php echo $this->headTitle('Thực đơn'); ?>
    <link href = "/images/front-end/favicon.ico" rel = "shortcut icon" type = "image/x-icon" />
    <meta http-equiv = "Content-Type" content = "text/html" charset = "utf-8" />
    <?php echo $this->headLink()->appendStylesheet('/css/front-end/reset.css'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/style.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/layout.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/prettyPhoto.css','all'); ?>
    <?php echo $this->headLink()->appendStylesheet('/css/front-end/jquery.fancybox-1.3.4.css'); ?>
    <?php echo $this->headScript()->appendFile('/js/front-end/jquery-1.7.1.min.js');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery-1.4.3.min.js','text/javascript');?> 
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery.fancybox-1.3.4.pack.js','text/javascript');?>  
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-yui.js','text/javascript');?>      
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-replace.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/Dynalight_400.font.js','text/javascript');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/FF-cash.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery.prettyPhoto.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/hover-image.js','text/javascript');?>   
    <?php echo $this->headScript()->offsetSetFile(0,'js/front-end/jquery.easing.1.3.js','text/javascript');?>   
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery.bxSlider.js','text/javascript');?>  
    <script type="text/javascript">
		$(document).ready(function() {
			$(".addToCart").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
					
			$('#slider-2').bxSlider({
				pager: true,
				controls: false,
				moveSlideQty: 1,
				displaySlideQty: 4
			});
			$("a[data-gal^='prettyPhoto']").prettyPhoto({theme:'facebook'});
		}); 
	</script>
	
</head>
<body id="page3">
	<!--==============================header=================================-->
    <header>
    	<div class="row-top">
        	<div class="main">
            	<div class="wrapper">
                	<h1><a href="index">NhaHang<span>5Sao</span>. com</a></h1>
                    <nav>
                        <ul class="menu">
                            <li><a href="<?php echo $this->baseUrl();?>/index/index"> Trang chủ </a></li>                            
                            <li><a class="active" href="<?php echo $this->baseUrl();?>/index/thucdon"> Thực đơn </a></li>
                            <li><a href="<?php echo $this->baseUrl();?>/index/giaohang"> Giao hàng </a></li>                            
                            <li><a href="<?php echo $this->baseUrl();?>/index/lienhe"> Liên hệ </a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
        <div class="row-bot">
        	<div class="row-bot-bg">
            	<div class="main">
                	<h2>Với Chúng Tôi Khách Hàng <span> Là Thượng Đế</span></span></h2>
                </div>                              
            </div>
        </div>
    </header>
    
	<!--==============================content================================-->
    <section id="content"><div class="ic"><div class="inner_copy">All <a href="http://www.magentothemesworld.com" title="Best Magento Templates">premium Magento themes</a> at magentothemesworld.com!</div></div>
        <div class="main">
            <div class="container">
            	<h3 class="prev-indent-bot"> Thực Đơn </h3>
                <div id="slider-2">
                	<?php 
						$result = $this->data;
						$totalLine =  count($result);						
						for ($i = 0; $i < $totalLine; $i++) 
						{?>
							<div>
								<div class = "p4">
								
									<figure><a class="lightbox-image" href="/images/front-end/slider-img1.jpg" data-gal="prettyPhoto[prettyPhoto]">
									<img src="/images/front-end/<?php echo $result[$i]['images'];?>"></a></figure>
									
									<h5 style = "color:#E14304;"><?php echo $result[$i]['item_name'];?></h5>
									
									<p class="p1"><?php echo $result[$i]['description']?></p>
									
									<p class="p2"><strong class="color-2"> Giá:<?php echo $result[$i]['price']; ?> VNÐ</strong></p>
									
									<a class="button-1" href="/index/item?item_id=<?php echo $result[$i]['item_id'];?>"> Đặt món </a>
									<a class="addToCart" href="/index/gia?item_id=<?php echo $result[$i]['item_id'];?>"> Phụ Gia </a>
								</div>
								<figure><a class="lightbox-image" href="/images/front-end/slider-img2.jpg" data-gal="prettyPhoto[prettyPhoto]">
								<img src="/images/front-end/<?php echo $result[++$i]['images']; ?>"></a></figure>
								
								<h5 style = "color:#E14304;"><?php echo $result[$i]['item_name']; ?></h5>
								
								<p class="p1"><?php echo $result[$i]['description']; ?></p>

								<p class="p2"><strong class="color-2"> Giá:<?php echo $result[$i]['price'];?>  VNÐ </strong></p>
								<a class="button-1" href="/index/item?item_id=<?php echo $result[$i]['item_id'];?>"> Đặt món </a>
								<a class="addToCart" href="/index/gia?item_id=<?php echo $result[$i]['item_id'];?>"> Phụ Gia </a>
							</div>
						<?php }                	
                	?>                	
            </div>
        </div>         
       </div>       
       <div id = "payment">
	       	<div id = "imgBill">        
	        	<img src = "/images/front-end/payment.png" title = "payer" />
	        </div>
	        <div id = "billContent">                
	        <div id = "statistic">
	        <?php	        	
	        	$bill = $this->bill;	        	
	        	if($bill['total_item'] > 0) {
	         ?>
	        	<div id = "titleBill"> Hóa Đơn của quý khách </div> 
	               	Số lượng món ăn: <?php echo $bill['total_item']; ?> món <br />
	                Số lượng phụ gia: <?php echo $bill['total_spice']; ?> món <br />
	                Tổng cộng: <font color = "#FF0000" > <?php echo $bill['total_money']. ".000 VNĐ"; ?> </font> <br />
	                <a href = "/index/thanhtoan"> Chi tiết &raquo; </a> 
	            </div>
	        <?php } ?>
	        </div>        
        </div>                
    </section>
    
	<!--==============================footer=================================-->
    <div id = "footer">
        <div class="main">
        	<div class="aligncenter">
            	<span>nhahang5sao.com &copy; 2012</span>
                <a rel="nofollow" class="link" target="_blank" href="index.phtml">Nhà hàng 5 sao</a><br>Admin: nhahang5sao@toantin.org
        </div>
    </div>
    <script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
